<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script> 
    let geo =  {
        lat:'26.864',
        lng:'115.362'
    }
    // ['28.682','115.362']
    // 字符串的方式
    localStorage.setItem('geo',JSON.stringify(geo))
    console.log(JSON.parse(localStorage.getItem('geo')));
    // localStorage.setItem('ls_name','计涛'); // 一直在
    // sessionStorage.setItem('ss_name','一一'); // 会话中在，关闭了浏览器窗口
    </script>
</body>
</html>